package reflect;

import reflect.annotations.AutoRunClass;

public class ReflectDemo9 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class cls = Class.forName("reflect.Person");
        boolean lean = cls.isAnnotationPresent(AutoRunClass.class);
        if(lean){
            System.out.println("有注解");
        }else{
            System.out.println("没有逐注解");
        }

    }
}
